package com.jg.business.delegate;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jg.locator.EJBLocator;
import com.jg.service.IUser;

@Service
public class UserDelegate implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6520407827010628128L;
	
	@Autowired
	private EJBLocator locator;
	
	
	public IUser get(){
		IUser user = (IUser) locator.getEJB("userImplJndi");
		return user;
	}


	public EJBLocator getLocator() {
		return locator;
	}


	public void setLocator(EJBLocator locator) {
		this.locator = locator;
	}
}
